﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Componnent.Common;
using WaterRevenueMS.Domain.ViewModels.Charge.ChargeRecord;
using WaterRevenueMS.Domain.ViewModels.Charge.MeterCharge;

namespace WaterRevenueMS.Core.Service.Charge
{
    public interface IChargeRecordService
    {
        IQueryable<WaterRevenueMS.Componnent.Entities.Charge.ChargeRecord> ChargeRecords { get; }

        OperationResult Update(ChargeRecordModel model);

        OperationResult Insert(ChargeRecordModel model);

        void Update(MeterChargeModel model);
        
        void GetLiuSModel(ChargeRecordModel model);

        void GetLiuSModel(MeterChargeModel model);

        void ChangeState(ChargeRecordModel model);

        //撤销收费记录
        void CheXYE(ChargeRecordModel model);

        //更新用户表余额
        void ChangeYE(ChargeRecordModel model);

        //更新用户表余额
        int ChangeYE(MeterChargeModel model);//更新成功--1 更新失败--0
        //生成一笔消费记录
        void SaveOneCharge(ChargeRecordModel model);

    }
}
